console.log(`脚本执行`);
function AllReady() {
    const mstfrom = Ext.getCmp("AqAccidentForm")

    const PhidPc = mstfrom.queryById("PhidPc")
    const Title = mstfrom.queryById("Title")
    console.log("AllReady");
    if(otype=="add"){
        alert('aaaaa')
    }
    PhidPc.addListener("helpselected", function () {
        setBillName()
    });
    console.log(`脚本执行`);
    //设置单据名称
    function setBillName(){
        Title.setValue(`${PhidPc.getRawValue()} 安全事故快报`);
        console.log(`修改完毕`);
    }
  }